efform_onload = function() {
	
};

// 查询
button_query_onclick = function() {
	efgrid.submitInqu("ef_grid_result", "ZM", "ZMCX02", "query");
};

// 确认
button_confirm_onclick = function() {	
	var mobile = "";
	var grid=isSelected("ef_grid_result");
//	if (grid == 0)  return;
	var rows=grid.getCheckedRows();
	for(var i=0;i<rows.length;i++)
	{ 
		if(i<rows.length-1)
		mobile += grid.getCellValueByColumnName(rows[i],"fdMobile")+",";
		else
		mobile +=grid.getCellValueByColumnName(rows[i],"fdMobile");
	}
//	alert(mobile);
	
	
//	efgrid.submitForm("ef_grid_result", "ZM", "ZMCX02",
//							"confirm", true);
	var info = getSCZXEiInfos("ZMCX02","ef_grid_result");
	info.set("phoneNum",mobile);
	window.opener.efform_onPopupReturn("ZMCX02",info);
	window.close();
//	return mobile;		
};
